package cn.tx.service.Impl;

import cn.tx.dao.GradeDao;
import cn.tx.dao.GradeYearDao;
import cn.tx.model.Grade;
import cn.tx.model.GradeYear;
import cn.tx.service.GradeService;
import cn.tx.service.GradeYearService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GradeYearServiceImpl implements GradeYearService {

    @Autowired
    private GradeYearDao gradeYearDao;

    @Override
    public GradeYear findByUserName(String username) {
        return gradeYearDao.findByUserName(username);
    }

    @Override
    public int addGrade(GradeYear grade) {
        return gradeYearDao.addGrade(grade);
    }

    @Override
    public List<GradeYear> findList(Map<String, Object> querymap) {
        return gradeYearDao.findList(querymap);
    }

    @Override
    public List<GradeYear> findAll() {
        return gradeYearDao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return gradeYearDao.findTotal(querymap);
    }

    @Override
    public int UpdateGradeById(GradeYear grade) {
        return gradeYearDao.UpdateGradeById(grade);
    }

    @Override
    public int delete(String ids) {
        return gradeYearDao.delete(ids);
    }

}
